package com.sayice.design.Mediator;

import java.util.ArrayList;
import java.util.List;

public class Hotels implements Colleague{
    Mediator mediator;
    List<String> list=new ArrayList<>();
    @Override
    public void setMediator(Mediator mediator) {
        this.mediator=mediator;
    }
    public void addConsumer(String name){
        list.add(name);
    }
    public List getList(){
        return list;
    }
}
